package com.jt.entity;

import java.util.List;

public class Relation {
    private Integer id;
    private Integer role;
    private List<Student> students;//学生表
    private List<Teacher> teachers;//老师表
    private List<Classs> classses;//班级


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public List<Teacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(List<Teacher> teachers) {
        this.teachers = teachers;
    }

    public List<Classs> getClassses() {
        return classses;
    }

    public void setClassses(List<Classs> classses) {
        this.classses = classses;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Relation{" +
                "id=" + id +
                ", role=" + role +
                ", students=" + students +
                ", teachers=" + teachers +
                ", classses=" + classses +
                '}';
    }
}
